package com.shang.service;

import com.shang.pojo.UserAddress;
import com.shang.pojo.bo.AddressBO;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

public interface AddressService {

    public List<UserAddress> queryAll(String userId);

    public void addNewUserAddress(AddressBO addressBO);

    /**
     * 更新地址
     * @param addressBO
     */
    public void updateUserAddress(AddressBO addressBO);

    /**
     * 删除地址
     * @param userId
     * @param addressId
     */
    public void deleteUserAddress(String userId, String addressId);


    public void updateUserAddressToBeDefault(String userId, String addressId);

    public UserAddress queryUserAddress(String userId,String addressId);
}
